import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/car-list',
      name: 'carList',
      component: () => import('./views/Car_list.vue')
    },
    {
      path: '/car-detaild',
      name: 'carDetaild',
      component: () => import('./views/Car_detaild.vue')
    },
    {
      path: '/car-serve-list',
      name: 'carSeveList',
      component: () => import('./views/Car_serve_list.vue')
    },
    {
      path: '/car-serve-detaild',
      name: 'carServeDetaild',
      component: () => import('./views/Car_serve_detaild.vue')
    }
  
  ]
})
